package com.vict.bean;

import com.vict.util.PatternUtil;
import lombok.Data;

import java.io.File;

@Data
public class FileDto {
    private String id;
    private File realFile;

    public String getShowFileName(){
        String name = this.realFile.getName();
        if(PatternUtil.matcherOne("^[0123456789]{5}\\.", name) != null){
            // 已经格式化好
            return name.substring(6, name.length());
        }
        return name;
    }
}
